﻿<%@ Page Language="C#" AutoEventWireup="true" 
CodeBehind="NotaIngresoReadForm.aspx.cs" 
Inherits="UILGestion.AlmacenAdmin.NotaIngresoReadForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>

<%@ Register src="~/Control/menuCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>

<%@ Import Namespace="System.Web.Script.Services" %>
<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../resources/css/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/theme.css" />
    <link href="../css/default.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/SearchResult.js" type="text/javascript"></script>
     
    <title>Recepcion Documento</title>
    
    </head>
    
    <body>
        <form id="form1" runat="server" autocomplete="off">
            <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="true"  
                    EnablePartialRendering="true"></asp:ToolkitScriptManager>
              
  
     <asp:Panel ID="mainPanel1" runat="server" Visible="false"
              CssClass="Heading secTitle AreaHeading ms-crm-List-Header ">

                 <asp:Label ID="Label2" runat="server" Text="NOTA INGRESO" 
                         style="font-size: large; color: #960818"></asp:Label>


</asp:Panel>
 <asp:Panel ID="PanelButtom" runat="server" Visible="false"    class="ms-crm-Form-Body" >

  <input id="Hidden1" type="hidden" runat="server" />
       <input id="Hidden2" type="hidden" runat="server" />
        <input id="type" type="hidden" runat="server" />
       <input id="idAlmacen" type="hidden" runat="server" />
       <input id="idColeccionList" type="hidden" runat="server" />
        <input id="idOC" type="hidden" runat="server" />
<table  width="100%">
                 <tr>
                 <td  width="80%">
                 
                   <table >
<tr>
<td>
    <asp:Button ID="refreshButton" runat="server" Text="Restablecer"  CssClass="ms-crm-List-Header"
        onclick="btnContinue_OnClick"    /></td>

<td>
    <asp:Button ID="nuevoButton" runat="server"  Text="Nuevo"     CssClass="ms-crm-List-Header"
        onclick="btnContinue_OnClick"    /></td>

 <td>
    <asp:Button ID="EliminarButton" runat="server" Text="Eliminar"  CssClass="ms-crm-List-Header"  
    OnClientClick="return confirm('Usted quiere eliminar?')" onclick="btnContinue_OnClick" 
        /></td> 

        

 <td>

 
        </td>
        <td>
            <asp:Button ID="editarBTN" runat="server" CssClass="ms-crm-List-Header" Visible="false" 
                onclick="btnContinue_OnClick" Text="Editar" />
    </td>
       
</tr>
</table>
                 </td>
                 <td>
                   <table align="left" >
            
            <tr>
                <td>
                    <asp:Button ID="anteriorButton" runat="server" CssClass="ms-crm-List-Header" Text="Anterior"  OnClick="btnContinue_OnClick" />
                </td>
                <td>
                    <asp:Button ID="siguienteButton" runat="server" CssClass="ms-crm-List-Header" Text="Siguiente" OnClick="btnContinue_OnClick" />
                </td>
            </tr>
        </table>  
                 </td>
                 </tr>
                 </table>
</asp:Panel>
  <asp:Panel ID="PanelBody" runat="server" Visible="false" BackColor="white" >
         <input id="idObra" type="hidden"  runat="server"/>
         <input id="internalid" type="hidden" runat="server"/>
        
                  <table>
                      <tr>
                          <td align="right" valign="top" width="100px">
                               Numero: </td>
                          <td valign="top" width="250px">
                              <asp:Label ID="numDocumentoLabel" runat="server"></asp:Label>
                          </td>
                          <td align="right" valign="top" width="100px">
                               Motivo: </td>
                          <td valign="top" width="200px">
                              <asp:Label ID="motivoDropDownList" runat="server"  
                                  Width="250px">
                              </asp:Label>
                          </td>
                      </tr>
                      <tr>
                      <td align="right" width="100px">
                               Almacen: </td>
                          <td width="250px">
                              <asp:Label ID="almacenDropDownList" runat="server"  
                                  Width="250px"></asp:Label>
                          </td>
                          
                          <td align="right" valign="top" width="100px">
                               Fecha Emision: </td>
                          <td valign="top" width="200px">
                              <asp:Label ID="fechaEmisonTextBox" runat="server" AutoPostBack="True" 
                                   ></asp:Label>
                              
                          </td>
                      </tr>
                      <tr>
                         <td align="right" width="100px">
                               Documento: </td>
                          <td width="250px">
                              <asp:Label ID="tipoDocDropDownList" runat="server"  
                                  Width="50px"></asp:Label>
                              <asp:Label ID="documentoTextBox" runat="server"  
                                  Width="150px"></asp:Label>
                          </td>
                          <td align="right">
                               Fecha Documento: </td>
                          <td>
                              <asp:Label ID="fechadocumentoTextBox" runat="server" AutoPostBack="True" 
                                  ></asp:Label>
                          </td>
                      </tr>
                      <tr>
                          <td align="right" width="100px">
                              <asp:Label ID="proveedorlbl" runat="server" Text="Proveedor:" 
                                  ></asp:Label>
                          </td>
                          <td width="250px">
                              <asp:Label ID="proveedordocumentoTextBox" runat="server"  
                                  Width="150px"></asp:Label>
                          </td>
                          <td align="right">
                               Fecha Creacion: </td>
                          <td>
                              <asp:Label ID="fechaCreTextBox" runat="server" AutoPostBack="True" 
                                  ></asp:Label>
                          </td>
                      </tr>
                      <tr>
                          <td align="right" width="100px">
                              <asp:Label ID="tipoCambiolbl" runat="server" Text="Tipo Cambio $:" 
                                  ></asp:Label>
                          </td>
                          <td width="250px">
                              <asp:Label ID="tipoCambioLabel" runat="server"></asp:Label>
                          </td>
                          <td align="right">
                               Usuario Creacion: </td>
                          <td>
                              <asp:Label ID="usuarioCreLabel" runat="server" AutoPostBack="True" 
                                  ></asp:Label>
                          </td>
                      </tr>
                      <tr>
                          <td align="right" valign="top" width="100px">
                               Observaciones: </td>
                          <td  colspan="3">
                              <asp:Label ID="observacionTextBox" runat="server" TextMode="MultiLine" Width="400px" ></asp:Label>
                          </td>
                         
                      </tr>
                  </table>
<br />
         <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
             <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Insumos">
             <ContentTemplate>
      <asp:UpdatePanel ID="ItemUpdatePanel" runat="server" UpdateMode="Conditional">
             <ContentTemplate>




                 <asp:GridView ID="itemGridView" runat="server" AutoGenerateColumns="False" 
                     CellPadding="4" DataKeyNames="idInternal"  SkinID="GridView"  
                      ShowHeaderWhenEmpty="true">
                 
                     <Columns>
                        

                            <asp:TemplateField>
                            
                            <ItemTemplate>
                             <asp:Hyperlink runat= "server"  ForeColor="Blue" Width="80px"
                Text='<%# DataBinder.Eval(Container.DataItem,"descripcionRef").ToString()%>'  
                 Target="_self"  ID="OrdenCompra"
                NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"formulario").ToString() %>' 
               />   

                            
                            </ItemTemplate>
                            </asp:TemplateField>

                        <asp:BoundField DataField="codigo" HeaderText="codigo" SortExpression="codigo" ItemStyle-Width="55px" /> 
                        <asp:BoundField DataField="descripcion" HeaderText="Descripcion" SortExpression="descripcion" ItemStyle-Width="350px" /> 
                        <asp:BoundField DataField="unidad" HeaderText="Unid." SortExpression="unidad" ItemStyle-Width="55px" /> 
                        <asp:BoundField DataField="PrecioUnit" HeaderText="Precio Unit." SortExpression="PrecioUnit" ItemStyle-Width="85px" ItemStyle-HorizontalAlign="Right" /> 
                        <asp:BoundField DataField="cantidad" HeaderText="Cant." SortExpression="cantidad" ItemStyle-Width="85px"  ItemStyle-HorizontalAlign="Right" /> 
                         
                                 
                         

                     </Columns>
                 </asp:GridView>
             </ContentTemplate>
         </asp:UpdatePanel>


         </ContentTemplate>
             </asp:TabPanel>
         </asp:TabContainer>
 </asp:Panel>



    

    </form>
</body>
</html>
